package model.technology;
import model.player.UnitManager;
import java.util.*;

public class UnitMaxHealthNode extends UnitTechnologyTreeNode 
{
	
	public UnitMaxHealthNode(UnitManager unitManager)
	{
		setUnitManager(unitManager);
		setTechnology("Health");
		setTechnologyLevel(0);
		setMaxTechnologyLevel(2);
		setChildren(new ArrayList<TechnologyTreeNode>());
	}
	
	public void upgradeStat()
	{
		incrementTechnologyLevel(1);
		getUnitManager().upgradeHealthStat();
	}
	
	public String toString()
	{
		return "Unit MaxHealth Node";
	}
}